package com.hui.service;

import com.github.pagehelper.PageInfo;
import com.hui.dto.*;
import com.hui.entity.Emp;
import com.hui.excel.EmpExcel;
import com.hui.vo.EmpVO;
import com.hui.vo.LoginVO;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;


import java.util.List;

public interface EmpService {
    int insert(EmpInsertDTO dto);

    Emp select(Long id);

    List<EmpVO> list();

    PageInfo<Emp> page(EmpPageDTO dto);

    int update(EmpUpdateDTO dto);

    int delete(Long id);

    int deleteBatch(List<Long> ids);

    List<EmpExcel> getExcelData();

    String uploadAvatar(MultipartFile newFile, Long id);

    int updatePassword(EmpUpdatePasswordDTO dto);

    LoginVO loginByAccount(LoginDTO dto);
}
